//
//  GGCollectionViewController.m
//  Gunterapple
//
//  Created by 热带雨林 on 2020/3/31.
//  Copyright © 2020 热带雨林. All rights reserved.
//

#import "GGCollectionViewController.h"
#import "ZFBBusinessTypeModel.h"
#import "ZFBBusinessTypeView.h"
#import "NSArray+URLAddtion.h"
@interface GGCollectionViewController ()
@property (nonatomic, strong) NSMutableArray <ZFBBusinessTypeModel *>*businessTypeModelList;
@end

@implementation GGCollectionViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self loadData];
    [self setUpUI];
}
- (void)setUpUI{
    self.view.backgroundColor = [UIColor whiteColor];
    ZFBBusinessTypeView *typeView = [[ZFBBusinessTypeView alloc]initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.frame), 300)];
    typeView.businessTypeModelList = _businessTypeModelList;
    [self.view addSubview:typeView];
    
}
- (void)loadData{
    self.businessTypeModelList = [NSArray gg_arrayModelWithPlistName:@"businessType.plist" withClassName:@"ZFBBusinessTypeModel"].mutableCopy;
}
#pragma mark - lazy
- (NSMutableArray <ZFBBusinessTypeModel *>*)businessTypeModelList{
    if(!_businessTypeModelList){
        _businessTypeModelList = [NSMutableArray array];
    }
    return _businessTypeModelList;
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
